﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.ArticleListViewModel>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<div class="bor_cor mar_t">
    <div class="bar_org_small module-title" align="center">
        <%var path = "/" + Model.ControllerName.ToLower() + "/" + Model.ActionList + "/" + (Model.Category != null ? "" + Model.Category.ID : "0");
          var pathDetails = "/" + Model.ControllerName.ToLower() + "/" + Model.ActionDetails;   %>
        <span class="module-title module-title"><a href="<%=path %>"><%=ViewData["Title"] %></a></span>
    </div>
    <div class="module_content">
        <div class="new_list">
            <%if (Model!=null && Model.Articles!=null)
            { %>
            <ul>
   	          <%foreach(var item in Model.Articles)
                {
                 %>
   	            <li>
   	                <a href="<%=pathDetails %>/<%=item.ID %>/<%=Html.ToUrlFriendly(item.Title)%>">
                        <%=Html.Encode(item.Title) %>
                    </a>
   	                <div class="line_dot"></div>  
   	            </li>              
               <%} %>
            </ul>
          <%} %>
        </div>
    </div>
    <div class="next">
   	    <a href="<%=path %>">Xem tiếp&raquo;</a>
   	</div>
    <div class="clear">
    </div>
</div>


